******************************************************************************************
*
* Replication file for "Ethnic Coalitions and Media Freedom in African Autocracies"
* by Janina Beiser-McGrath 
*
******************************************************************************************



* All analyses were performed in Stata 17 


use repdata, replace 

xtset ccodecow year 



***********************************************************************************
* Article, Table 1
***********************************************************************************

		   
xtreg  v2mecenefm l_poscoalprop33_bin largepos33   l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if autoc == 1 & africa == 1, fe cluster(ccodecow)

est sto m1
			   
			  			   	   
xtreg  v2mecenefm l_poscoalprop33  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3   if autoc == 1 & africa == 1,  fe cluster(ccodecow)
			   			   
est sto m2




***********************************************************************************
* Online appendix, Table 1, Summary Statistics
***********************************************************************************
 

estpost tabstat v2mecenefm l_poscoalprop33_bin largepos33 l_poscoalprop33  l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears if year > 1949 & year < 2007 & autoc == 1 & africa == 1,  c(stat) stat(sum mean sd min max n)

			   

***********************************************************************************
* Online appendix, Figure 1
***********************************************************************************


use repdata, replace 

xtset ccodecow year 

xtreg  v2mecenefm l_poscoalprop33_bin largepos33   l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if autoc == 1 & africa == 1, fe cluster(ccodecow)

keep if e(sample)

twoway scatter largepos33nolag year, by(countryname, note("")) scheme(s1mono) xtitle(Year)|| scatter v2mecenefm year 



***********************************************************************************
* Online appendix, Figure 2
***********************************************************************************


keep if countryname == "Senegal" |  countryname == "Ghana" |  countryname == "Nigeria" | countryname == "Gabon" |  countryname == "Central African Republic"  |  ///
countryname == "Kenya" |  countryname == "Burundi" |  countryname == "Zimbabwe (Rhodesia)"

twoway scatter largepos33nolag year, by(countryname, note("")) scheme(s1mono) xtitle(Year)|| scatter v2mecenefm year 



***********************************************************************************
* Online appendix, Figure 3
***********************************************************************************
		

use repdata, replace 

xtset ccodecow year 		
					  			   	   
xtreg  v2mecenefm l_poscoalprop33  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3   if autoc == 1 & africa == 1,  fe cluster(ccodecow)

keep if e(sample)

gen poscoalprop3310 = poscoalprop33*10

label var poscoalprop3310 "Junior 33\% of senior, prop, x 10"

twoway scatter poscoalprop3310 year  , by(countryname, note("")) scheme(s1mono) xtitle(Year) || scatter v2mecenefm year  



***********************************************************************************
* Online appendix, Figure 4
***********************************************************************************


keep if countryname == "Senegal" |  countryname == "Ghana" |  countryname == "Nigeria" | countryname == "Gabon" | countryname == "Central African Republic" | countryname == "Chad" ///  
| countryname == "Congo"| countryname == "Kenya" |  countryname == "Burundi" |  countryname == "Zimbabwe (Rhodesia)" 


twoway scatter poscoalprop3310 year  , by(countryname, note("")) scheme(s1mono) note("") xtitle(Year) || scatter v2mecenefm year  


	
***********************************************************************************
* Online appendix, Table 2
***********************************************************************************


use repdata, replace 

xtset ccodecow year 

xtlogit gwf_party    l_poscoalprop33_bin largepos33     l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3   if autoc == 1 & africa == 1,  fe  

est sto m1oth 
			   
xtlogit gwf_party  l_poscoalprop33  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if autoc == 1 & africa == 1,   fe  

est sto m2oth 
			   
xtreg  v2clkill  l_poscoalprop33_bin largepos33   l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if autoc == 1 & africa == 1, fe cluster(ccodecow)

est sto m3oth 
			   
xtreg  v2clkill  l_poscoalprop33  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if autoc == 1 & africa == 1,  fe cluster(ccodecow)
			   
est sto m4oth 



***********************************************************************************
* Online appendix, Table 3
***********************************************************************************


xtreg  v2mecenefm l_poscoalprop33_bin largepos33  largeneg33 l_negcoalprop33_bin l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3   if autoc == 1 & africa == 1,  fe cluster(ccodecow)

est sto m1large
	   
xtreg  v2mecenefm l_poscoalprop33 l_negcoalprop33  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if autoc == 1 & africa == 1,  fe cluster(ccodecow)
			   
est sto m2large



***********************************************************************************
* Online appendix, Table 4
***********************************************************************************


use repdata, clear 

xtset ccodecow year 

* Note: the variable on nonviolent_bin doesn't vary here so drops out of the model 

xtreg  v2mecenefm l_poscoalprop33_bin largepos33   l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if democ == 1 & africa == 1,  fe cluster(ccodecow)
			   
est sto m1dem 
			   
xtreg  v2mecenefm l_poscoalprop33  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if democ == 1 & africa == 1,  fe cluster(ccodecow)

est sto m2dem 		   
			   
			   

***********************************************************************************
* Online appendix, Table 5
***********************************************************************************


xtreg  v2mecenefm l_poscoalprop33_bin largepos33   l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if autoc == 1 & africa == 0,  fe cluster(ccodecow)
			   
est sto m1noaf 
			  
xtreg  v2mecenefm l_poscoalprop33  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if autoc == 1 & africa == 0,  fe cluster(ccodecow)
			  
est sto m2noaf 



***********************************************************************************
* Online appendix, Table 6
***********************************************************************************

		   
xtreg  v2mecenefm_osp l_poscoalprop33_bin largepos33   l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if autoc == 1 & africa == 1 , fe cluster(ccodecow)

est sto m1_osp
			   
xtreg  v2mecenefm_osp l_poscoalprop33  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3    if autoc == 1 & africa == 1 , fe cluster(ccodecow)
			   
est sto m2_osp



***********************************************************************************
* Online appendix, Table 7
***********************************************************************************

	   
xtreg  v2mecenefm l_poscoalprop33_bin largepos33   l_largecoal    if autoc == 1 & africa == 1, fe cluster(ccodecow)

est sto m1small
			   
			   
xtreg  v2mecenefm l_poscoalprop33    if autoc == 1 & africa == 1 , fe cluster(ccodecow)
			   
est sto m2small



***********************************************************************************
* Online appendix, Figure 5
***********************************************************************************

gen cons = l_poscoalprop10_bin
gen inter = largepos10
		   
xtreg  v2mecenefm   cons inter  l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if autoc == 1 & africa == 1, fe cluster(ccodecow)

est sto m1_10
	
replace cons = l_poscoalprop20_bin
replace inter = largepos20


xtreg  v2mecenefm   cons inter  l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if autoc == 1 & africa == 1, fe cluster(ccodecow)

est sto m1_20
			    
replace cons = l_poscoalprop30_bin
replace inter = largepos30

xtreg  v2mecenefm   cons inter  l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if autoc == 1 & africa == 1, fe cluster(ccodecow)
			   
est sto m1_30
			 	 
replace cons = l_poscoalprop40_bin
replace inter = largepos40

xtreg  v2mecenefm   cons inter  l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if autoc == 1 & africa == 1, fe cluster(ccodecow)

est sto m1_40

replace cons = l_poscoalprop50_bin
replace inter = largepos50

xtreg  v2mecenefm   cons inter  l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3 if autoc == 1 & africa == 1 , fe cluster(ccodecow)

est sto m1_50
   	
label var cons "Junior X% of senior, dummy, t-1"
label var inter  "Large coalition, t-1 x junior X%, t-1"
	 
set scheme s1color
	
coefplot   (m1_10 ,  xline(0)  drop ( l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3 _cons) label(X = 10) ) ///
			   (m1_20 , drop ( l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3 _cons) label(X = 20) ) ///
			   (m1_30 , drop ( l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3 _cons) label(X = 30) ) ///
			   (m1_40 , drop ( l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3 _cons) label(X = 40) ) ///
			   (m1_50 , drop ( l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3 _cons) label(X = 50) ) 
					   			   
			   
			   
***********************************************************************************
* Online appendix, Figure 6
***********************************************************************************


gen posprop = l_poscoalprop10

label var posprop "Junior X% of senior, prop, t-1"
		   	   		   
xtreg  v2mecenefm posprop  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if autoc == 1 & africa == 1  , fe cluster(ccodecow)
			   
est sto m2_10

replace posprop = l_poscoalprop20

xtreg  v2mecenefm posprop l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3   if autoc == 1 & africa == 1 , fe cluster(ccodecow)
			   
est sto m2_20		
	
replace posprop = l_poscoalprop30

xtreg  v2mecenefm posprop  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3    if autoc == 1 & africa == 1, fe cluster(ccodecow)
	
est sto m2_30
		   		 
replace posprop = l_poscoalprop40 

xtreg  v2mecenefm posprop  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if autoc == 1 & africa == 1  , fe cluster(ccodecow)
		
est sto m2_40
		
replace posprop = l_poscoalprop50		
			   
xtreg  v2mecenefm posprop l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3   if autoc == 1 & africa == 1 , fe cluster(ccodecow)
			   
est sto   m2_50
			   		
coefplot   (m2_10 ,  xline(0)  drop ( l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3 _cons) label(X = 10) ) ///
			   (m2_20 , drop ( l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3 _cons) label(X = 20) ) ///
			   (m2_30 , drop ( l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3 _cons) label(X = 30) ) ///
			   (m2_40 , drop ( l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3 _cons) label(X = 40) ) ///
			   (m2_50 , drop ( l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3 _cons) label(X = 50) ) 


			   
***********************************************************************************
* Online appendix, Table 8
***********************************************************************************


xtreg  v2mecenefm l_poscoalprop10_bin largepos10 l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if autoc == 1 & africa == 1 , fe cluster(ccodecow)

est sto m110 

			   
xtreg  v2mecenefm l_poscoalprop10  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if autoc == 1 & africa == 1 , fe cluster(ccodecow)

est sto m210 

			   
			   
***********************************************************************************
* Online appendix, Table 9
***********************************************************************************
		   	   
			   
xtreg  v2mecenefm l_poscoalprop20_bin largepos20 l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if autoc == 1 & africa == 1 , fe cluster(ccodecow)

est sto m120 

			   
xtreg  v2mecenefm l_poscoalprop20  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3   if autoc == 1 & africa == 1, fe cluster(ccodecow)

est sto m220 


			
***********************************************************************************
* Online appendix, Table 10
***********************************************************************************


xtreg  v2mecenefm l_poscoalprop30_bin largepos30 l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if autoc == 1 & africa == 1 , fe cluster(ccodecow)

est sto m130 

xtreg  v2mecenefm l_poscoalprop30  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if autoc == 1 & africa == 1 , fe cluster(ccodecow)

est sto m230 

			   
			      
***********************************************************************************
* Online appendix, Table 11
***********************************************************************************

  
xtreg  v2mecenefm l_poscoalprop40_bin largepos40 l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3   if autoc == 1 & africa == 1, fe cluster(ccodecow)

est sto m140 

xtreg  v2mecenefm l_poscoalprop40  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if autoc == 1 & africa == 1 , fe cluster(ccodecow)

est sto m240 
			   
			   
			   
***********************************************************************************
* Online appendix, Table 12
***********************************************************************************


xtreg  v2mecenefm l_poscoalprop50_bin largepos50 l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3   if autoc == 1 & africa == 1 , fe cluster(ccodecow)
			   
est sto m150 

xtreg  v2mecenefm l_poscoalprop50  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  if autoc == 1 & africa == 1 , fe cluster(ccodecow)

est sto m250



***********************************************************************************
* Online appendix, Table 13
***********************************************************************************


xtreg  v2mecenefm l_poscoalprop33_bin largepos33   l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  l_prop_incl if autoc == 1 & africa == 1 , fe cluster(ccodecow)

est sto m1prop 
			   
xtreg  v2mecenefm l_poscoalprop33  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  l_prop_incl if autoc == 1 & africa == 1 , fe cluster(ccodecow)

est sto m2prop 



***********************************************************************************
* Online appendix, Table 14
***********************************************************************************


xtreg  v2mecenefm l_poscoalprop33_bin largepos33   l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
 coup   elec senioryears senioryears2 senioryears3 l_egip_groups_count if autoc == 1 & africa == 1 , fe cluster(ccodecow)

est sto m1num 
 
xtreg  v2mecenefm l_poscoalprop33  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  l_egip_groups_count  if autoc == 1 & africa == 1, fe cluster(ccodecow)

est sto m2num 



***********************************************************************************
* Online appendix, Table 15
***********************************************************************************


xtreg  v2mecenefm l_poscoalprop33_bin largepos33   l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  l_juniorequallarger if autoc == 1 & africa == 1, fe cluster(ccodecow)

est sto m1jun
			   
xtreg  v2mecenefm l_poscoalprop33  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  l_juniorequallarger  if autoc == 1 & africa == 1 , fe cluster(ccodecow)
	
est sto m2jun 
	  


***********************************************************************************
* Online appendix, Table 16
***********************************************************************************


xtreg  v2mecenefm l_poscoalprop33_bin largepos33  l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3    l_any33 if autoc == 1 & africa == 1, fe cluster(ccodecow)

est sto m1any
			   
xtreg  v2mecenefm l_poscoalprop33   l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3 l_any33  if autoc == 1 & africa == 1, fe cluster(ccodecow)
			   
est sto m2any



***********************************************************************************
* Online appendix, Table 17 
***********************************************************************************


xtreg  v2mecenefm l_v2mecenefm l_poscoalprop33_bin largepos33   l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3   if autoc == 1 & africa == 1, fe cluster(ccodecow)
			   
est sto m1ldv 
			   
xtreg  v2mecenefm l_v2mecenefm  l_poscoalprop33  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3   if autoc == 1 & africa == 1 , fe cluster(ccodecow)
	
est sto m2ldv 



***********************************************************************************
* Online appendix, Table 18 
***********************************************************************************


xtreg  v2mecenefm l_poscoalprop33_bin largepos33   l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  year if autoc == 1 & africa == 1 , fe cluster(ccodecow)

est sto m1trend 
			   
xtreg  v2mecenefm l_poscoalprop33  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  year if autoc == 1 & africa == 1 , fe cluster(ccodecow)

est sto m2trend



***********************************************************************************
* Online appendix, Table 19 
***********************************************************************************


xtreg  v2mecenefm l_poscoalprop33_bin largepos33   l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  years* if autoc == 1 & africa == 1 , fe cluster(ccodecow)

est sto m1time 
			   
xtreg  v2mecenefm l_poscoalprop33  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  years*  if autoc == 1 & africa == 1, fe cluster(ccodecow)
est sto m2time 



***********************************************************************************
* Online appendix, Table 20
***********************************************************************************


xtreg  v2mecenefm  l_poscoalprop33_bin largepos33   l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec autyearscum autyearscum2  autyearscum3  if autoc == 1 & africa == 1 , fe cluster(ccodecow)

est sto m1aut 
			   
xtreg  v2mecenefm    l_poscoalprop33  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec autyearscum autyearscum2  autyearscum3 if autoc == 1 & africa == 1 , fe cluster(ccodecow)

est sto m2aut 



***********************************************************************************
* Online appendix, Table 21
***********************************************************************************


reg  v2mecenefm   l_poscoalprop33_bin largepos33   l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3  l_any33 if autoc == 1 & africa == 1  ///
			  ,   cluster(ccodecow)

est sto m1nofe 
			   
reg  v2mecenefm    l_poscoalprop33  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3   l_any33 if autoc == 1 & africa == 1 ///
			  ,   cluster(ccodecow)

est sto m2nofe



***********************************************************************************
* Online appendix, Table 22 
***********************************************************************************

		   
xtreg  v2mecenefm l_poscoalprop33small_bin largepos33small   l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3   if autoc == 1 & africa == 1, fe cluster(ccodecow)

est sto m1sm
			      
xtreg  v2mecenefm l_poscoalprop33small  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3   if autoc == 1 & africa == 1, fe cluster(ccodecow)
			   
est sto m2sm



***********************************************************************************
* Online appendix, Table 23
***********************************************************************************


use repdataincirrel, replace 


xtreg  v2mecenefm l_poscoalprop33_bin largepos33   l_largecoal l_largestsenior l_coal ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3   if autoc == 1 & africa == 1, fe cluster(ccodecow)

est sto m1irrel
			   
xtreg  v2mecenefm l_poscoalprop33  l_largestsenior l_coal l_largecoal  ///
                l_excl_groups_count  l_exclpop    ///
                 oil ln_gle_cgdpc ///
                     exrecruit  v2x_horacc ///
                nonviolent_bin ///
                 incidence_flag ///
               coup   elec senioryears senioryears2 senioryears3   if autoc == 1 & africa == 1 , fe cluster(ccodecow)
			   
			   
est sto m2irrel





